import { IsNumber, IsNotEmpty } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class AddMemberDto {
  @ApiProperty({
    description: '用户 ID',
    example: 2,
  })
  @IsNumber()
  @IsNotEmpty({ message: '用户 ID 不能为空' })
  userId: number;
}
